import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import filters from './utils/filters'
import VueLazyload from 'vue-lazyload'
import ECharts from './base/echarts'
import JLBlog from './components/index'
import './assets/styles/css/index.scss'

// 图片懒加载
Vue.use(VueLazyload)

// echarts
Vue.component('v-chart', ECharts)
Vue.config.productionTip = false

// 自定义组件
Vue.use(JLBlog)

// 自定义指令
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]))

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
